-- GENERATED SPELL FOR [Jabbering Ghoul] --


function spell0_10801(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(15716,pUnit)
pUnit:RegisterEvent('Sorts_10801', 610, 1)
end

function spell1_10801(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(12097,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10801', 20254, 1)
end

function Sorts_10801(pUnit, Event)
local choix_sorts_10801 = math.random(0, 1)
if choix_sorts_10801 == 0 then
pUnit:RegisterEvent('spell0_10801', 1, 1)
end
if choix_sorts_10801 == 1 then
pUnit:RegisterEvent('spell1_10801', 1, 1)
end
end

function mob10801_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10801', math.random(1500, 3000), 1)
end

function mob10801_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10801_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10801_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10801, 1, 'mob10801_Action')
RegisterUnitEvent(10801, 2, 'mob10801_Leave')
RegisterUnitEvent(10801, 3, 'mob10801_Kill')
RegisterUnitEvent(10801, 4, 'mob10801_Die')
